package com.linchong.concurrency.immutable;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2020-12-08 18:15
 * @Description: ImmutableExample1$
 */
public class ImmutableExample1 {

	private final static Integer a = 1;

	private final static String b = "2";

	private final static Map<Integer,Integer> map = Maps.newHashMap();

	static{
		map.put(1,2);
		map.put(3,4);
		map.put(5,6);
	}

	public static void main(String[] args) {
		//a = 2;
		//b = "3";
		//map = Maps.newHashMap();
		map.put(1,3);
	}

	/**
	 * 传入过程中不允许发生变化
	 * @param a
	 */
	private void test(final int a){
		//a = 1;
	}
}
